
<?php

// This file is part of the Carrington Text Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
// **********************************************************************
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
if (CFCT_DEBUG) { cfct_banner(__FILE__); }

require_once('mdetect.php');

//Instantiate the object to do our testing with.
$uagent_obj = new uagent_info();

//Let's detect an iPhone.
//This will return a 1 for true or 0 for false.
$isMobile = $uagent_obj->DetectSmartphone();
$isIpad = $uagent_obj->DetectIpad();

if($isMobile == 0 && $isIpad == 0)
{

?>
	<div id='sideMenu' onmouseover="menuOver()" >
		<img id='close' onclick='menuOut()' src='<?php bloginfo('template_url') ?>/img/close.png'>
		<img id='arrowMenu' src='<?php bloginfo('template_url') ?>/img/menuArrow.png'>
		<p id='menuTitle'>The aircraft</p>
		<ul>
			<?php
				$index = 0;
				while (have_posts()) {
					?>
			<li><p onclick="scrollTo(<?php echo $index ?>)"><?php the_post(); the_title();?></p></li>
					<?php
					$index++;
				}
			?>
		</ul>
		<a class='top'>TOP</a>
	</div>

<?php
}

	if (have_posts()) {
	while (have_posts()) {
		the_post();
		cfct_content();
	}
}


?>

